package org.yzhang3.data.common;

import java.util.zip.ZipException;

public interface TextCompressible {
	
	/**
	 * Compress one <code>originalText</code> string.
	 * @param originalText
	 * @return compressed text
	 * @throws ZipException
	 */
	String compressText(String originalText) throws ZipException;
	
	/**
	 * Decompress one <code>compressedText</code> string.
	 * @param compressedText
	 * @return original text
	 * @throws ZipException
	 */
	String decompressText(String compressedText) throws ZipException;
	
}
